package com.kcht.rfid.rd30.secretary.dispatch;

import java.util.Observable;
import java.util.Observer;

/**
 * 异常检测
 * */
public abstract class BaseAbnormalDetection extends Observable {

    public BaseAbnormalDetection(Observer observer) {
        this.addObserver(observer);
    }

    /**
     * 检测结果发送给观察者
     * */
    protected abstract void detection(IReaderChannel channel);

    /**
     * 关闭检测，关闭线程
     * */
    protected abstract void closeDetection();

}
